package com.mcxx.modules.nopage.service.write;

import com.mcxx.modules.nopage.dao.write.DocNoPageWriteDao;
import com.mcxx.modules.nopage.entity.DocNoPageRecordEntity;
import com.mcxx.modules.nopage.entity.DocNoPageTemplateEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class DocNoPageWriteService {
    @Autowired
    private DocNoPageWriteDao docNoPageWriteDao;


    public void insertDocTemplate(DocNoPageTemplateEntity entity) {
        docNoPageWriteDao.insertDocTemplate(entity);
    }


    public void insertRecord(DocNoPageRecordEntity entity) {
        docNoPageWriteDao.insertRecord(entity);
    }


    public void deleteRecordByOrderId(String orderId) {
        docNoPageWriteDao.deleteRecordByOrderId(orderId);
    }


    public void updateFileRecordByOrderId(DocNoPageRecordEntity entity) {
        docNoPageWriteDao.updateFileRecordByOrderId(entity);
    }

    public void updateReviewFileByOrderId(DocNoPageRecordEntity entity) {
        docNoPageWriteDao.updateReviewFileByOrderId(entity);
    }


    public void saveDocTemplate(DocNoPageTemplateEntity entity) {
        docNoPageWriteDao.saveDocTemplate(entity);
    }


    public void deleteDocTemplate(DocNoPageTemplateEntity entity) {
        docNoPageWriteDao.deleteDocTemplate(entity);
    }


    public void updateDocTemplate(DocNoPageTemplateEntity entity) {
        docNoPageWriteDao.updateDocTemplate(entity);
    }
}
